package org.darcy.framework.blog.file;

import org.darcy.framework.blog.file.entity.VirtualFile;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.InputStream;

/**
 * 文件处理客户端
 */
public interface ApiClient {

	VirtualFile uploadImg(MultipartFile file);

	VirtualFile uploadImg(File file);

	VirtualFile uploadImg(InputStream is, String key);

	boolean removeFile(String key);
}
